package org.ihelpuoo.weboo.tag.ajax;

import javax.servlet.jsp.JspException;

import org.ihelpuoo.parser.segment.Segment;

public class ChildTag extends ViewTag
{
	private static final long	serialVersionUID	= -449325134331285120L;

	public ChildTag()
	{
		_segmentName = "ajax.child";
		_confSegmentName = "ajax.childConf";
	}

	private String	to;

	public String getTo()
	{
		return to;
	}

	public void setTo(String to)
	{
		this.to = to;
	}

	@Override
	protected void end() throws JspException
	{
		((ViewTag)this.getParent()).addChild(this);
	}

	@Override
	public Segment render()
	{
		return super.render().set("to",to);
	}
}
